package nz.example.uni;

import java.io.Serializable;
import java.util.Date;

public class Person implements Serializable {
	
	private static final long serialVersionUID = -1344155351769752406L;
	
	private String _name;
	private Date _dob;
	private Address _address;
	private boolean _isMale;

	public Person() {
	}

	public String getName() {
		return _name;
	}

	public void setName(String name) {
		_name = name;
	}

	public Date getDob() {
		return _dob;
	}

	public void setDob(Date dob) {
		_dob = dob;
	}

	public Address getAddress() {
		return _address;
	}

	public void setAddress(Address address) {
		_address = address;
	}
	
	public boolean getMale() {
		return _isMale;
	}

	public void setMale(boolean isMale) {
		_isMale = isMale;
	}

	
	@Override
	public String toString() {
		return this.getName() +" { "+this.getDob()+" }";
	}
}
